namespace ZFramework
{
    public interface IConnection<Input, Output>
    {
        void Send(Input packet);
        bool Poll(out Output packet);
    }

    public interface IClientConn : IConnection<IGameEvent, ICommand>;

    public interface IServerConn : IConnection<ICommand, IGameEvent>;
}